<template>
	<view class="agreement">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default{
		data() {
			return {
				content:` `
			}
		},
		onLoad() {
			this.getContent()
		},
		  components: {
		    jyfParser
		  },
		methods:{
			getContent(){
				this.$Request.get(this.$api.myShop.getRegContent).then(
					res => {
						if(res.code===1){
							console.log(res);
							this.content = res.data.content
						}else{
							this.$utils.showMsg(res.info)
						}
					},
					err => {
						console.log('err: ' + JSON.stringify(err));this.$utils.showMsg(err.data.info);
					}
				);
			}
		}
	}
</script>

<style scoped>
	.agreement{
		padding: 20rpx;
		color: #666;
	}
</style>
